package com.demo.spring.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("com.demo.spring.aop");
		Person bean2 = (Person)context.getBean(Person.class);
		bean2.say();
		// bean2.play();
	}

}
